<?php
include_once "BaseM.php";
 
class MemberTokenM extends BaseM{
	
	private $table = "member";
	
	public function __construct() {
		parent::__construct ();
	}
	
	public function checkToken($id, $device_key){
		$sql = "select id from $this->table where (id = $id) and (device_key = '$device_key')";
		return $this->querySQL($sql, true) ? true : false ;
	}
	
}

?>